#include <stdio.h>
#include <kewinternal.h>

#define SOURCE_FILE_NAME "Nil"

METHOD(Show)
{
  printf("Nil");
}


static KewObjectType nil_type = {
  SOURCE_FILE_NAME, __LINE__,
  0,
  {
    {"=", Kew__GenericEqual, 1, 1},
    {"hash", Kew__GenericHash, 0, 1},
    {"show", Show, 0, 0},
    {NULL, NULL, 0, 0}
  }
};

void
Kew__InitNil()
{
  KewNil = KewNewObject(&nil_type);
  /* FIXME: add this as a GC root */
}
